<?
require("config.php");

$label = "Product Brand List";

$table="pro_brand";

	$Query="SELECT 
	id,
	code,
	name,
	logo1,
	logo2 
	FROM $table ORDER BY id DESC";

	$r=myQuery($Query);

require($rela_path . "inc/header1.php");
?>

<br>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" class="tb">  <tr class="tbheader"> 
    <td width="3%">
      <div align="center">No.</div>
    </td>
    <td width="15%"> 
      <div align="center">Brand Code</div>
    </td>
    <td width="51%"> 
      <div align="center">Brand Name</div>
    </td>
    <td width="31%"> 
      <div align="center">Logo Image</div>
    </td>
  </tr>


<?
if ($r){
	for ($i=0;$i<count($r);$i++){?>
  <tr class="tbcontent1"> 
    <td width="2%" align="right"><?print($i+1)?></td>
    <td width="10%"><?print($r[$i][1])?></td>
    <td width="41%"><?print($r[$i][2])?></td>
    <td width="13%"> <div align="center">
	<?loadImage($r[$i][3],$rela_path . $PIC_DIR . $table . "/")?>
	<?loadImage($r[$i][4],$rela_path . $PIC_DIR . $table . "/")?>
</div></td>
  </tr>
<?}
}?>


</table>
<br>
<br>
<?
require($rela_path . "inc/footer1.php");
?>
